﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.EquipmentManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.EquipmentManagement.EquipmentVMs
{
    public partial class EquipmentBatchVM : BaseBatchVM<Equipment, Equipment_BatchEdit>
    {
        public EquipmentBatchVM()
        {
            ListVM = new EquipmentListVM();
            LinkedVM = new Equipment_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class Equipment_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._Equipment._EquipName")]
        public string EquipName { get; set; }
        [Display(Name = "_Model._Equipment._EquipCode")]
        public string EquipCode { get; set; }
        [Display(Name = "_Model._Equipment._EquipType")]
        public EquipTypeEnum? EquipType { get; set; }
        [Display(Name = "_Model._Equipment._SpotType")]
        public EquipSpotCheckEnum? SpotType { get; set; }
        [Display(Name = "_Model._Equipment._DriverType")]
        public DriverTypeEnum? DriverType { get; set; }
        [Display(Name = "_Model._Equipment._IpAddress")]
        public string IpAddress { get; set; }
        [Display(Name = "_Model._Equipment._Port")]
        public string Port { get; set; }
        [Display(Name = "_Model._Equipment._Actvie")]
        public bool? Actvie { get; set; }
        [Display(Name = "_Model._Equipment._Manufactor")]
        public string Manufactor { get; set; }
        [Display(Name = "_Model._Equipment._Aux_1")]
        public string Aux_1 { get; set; }
        [Display(Name = "_Model._Equipment._Aux_2")]
        public string Aux_2 { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}